package com.whfc.iot.fse.crane.entity;

import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

/**
 * @Description: 塔吊协议常量
 * @author: xugcheng
 * @version: 1.0
 * @date: 2021-05-19 11:45
 */
public class TwConst {

    public static final Charset UTF8 = StandardCharsets.UTF_8;

    /**
     * 报文结束标记
     */
    public static int END_FLAG = 0xCC33C33C;

    /**
     * 注册
     */
    public static final String TW_CMD_REGISTER = "register";

    /**
     * 下线
     */
    public static final String TW_CMD_DOWNLINE = "downline";

    /**
     * 心跳
     */
    public static final String TW_CMD_HEARTBEAT = "heartBeat";

    /**
     * 设定参数
     */
    public static final int TW_CMD_PARAM = 0x31;

    /**
     * 实时数据
     */
    public static final int TW_CMD_REALDATA = 0x0C;

    /**
     * 工作循环
     */
    public static final int TW_CMD_WORKCYCLEDATA = 0x3D;

    /**
     * 倾翻报警
     */
    public static final String TW_CMD_TIPALARMDATA = "tipAlarmData";
}

